<!doctype html>


<html>
<head>
  <link rel="shortcut icon" href="static/images/favicon.ico" type="image/x-icon">
  <title>defaulttoolbar.js (Closure Library API Documentation - JavaScript)</title>
  <link rel="stylesheet" href="static/css/base.css">
  <link rel="stylesheet" href="static/css/doc.css">
  <link rel="stylesheet" href="static/css/sidetree.css">
  <link rel="stylesheet" href="static/css/prettify.css">

  <script>
     var _staticFilePath = "static/";
     var _typeTreeName = "goog";
     var _fileTreeName = "Source";
  </script>

  <script src="static/js/doc.js">
  </script>


  <meta charset="utf8">
</head>

<body onload="grokdoc.onLoad();">

<div id="header">
  <div class="g-section g-tpl-50-50 g-split">
    <div class="g-unit g-first">
      <a id="logo" href="index.html">Closure Library API Documentation</a>
    </div>

    <div class="g-unit">
      <div class="g-c">
        <strong>Go to class or file:</strong>
        <input type="text" id="ac">
      </div>
    </div>
  </div>
</div>





<div class="colmask rightmenu">
<div class="colleft">
    <div class="col1">
      <!-- Column 1 start -->

<div id="title">
       <span class="fn">defaulttoolbar.js</span>
</div>

<div class="g-section g-tpl-75-25">
  <div class="g-unit g-first" id="description">
    <span class='nodesc'>No description.</span>
  </div>
  

        <div class="g-unit" id="useful-links">
          <div class="title">Useful links</div>
          <ol>
            <li><a href="http://closure-library.googlecode.com/git/closure/goog/demos/editor/editor.html">Demo</a></li>
            <li><a href="local_closure_goog_ui_editor_defaulttoolbar.js.source.html"><span class='source-code-link'>Source Code</span></a></li>
            <li><a href="http://code.google.com/p/closure-library/source/browse/local/closure/goog/ui/editor/defaulttoolbar.js">Git</a></li>
          </ol>
        </div>
</div>

<h2 class="g-first">File Location</h2>
  <div class="g-section g-tpl-20-80">
    <div class="g-unit g-first">
      <div class="g-c-cell code-label">/goog/ui/editor/defaulttoolbar.js</div>
    </div>
  </div>
<hr/>


   
<br/>

  <div class="legend">
        <span class="key publickey"></span><span>Public</span>
        <span class="key protectedkey"></span><span>Protected</span>
        <span class="key privatekey"></span><span>Private</span>
  </div>









<div class="section">
  <table class="horiz-rule">


  </table>
</div>




  <h2>Global Functions</h2>





<div class="section">
  <table class="horiz-rule">


     <tr class="even entry public">
       <td class="access"></td>






  <td>
    <a name="goog.ui.editor.DefaultToolbar.addDefaultFontSizes"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace">goog.ui.editor.DefaultToolbar.</span><span class="entryName">addDefaultFontSizes<span class="args">(<span class="arg">button</span>)</span>
        </span>
      </div>


     <div class="entryOverview">
       Initializes the given font size menu button by adding default font sizes to
it.

     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">button</span>
        : <span>!</span><span class="type"><a href="class_goog_ui_Select.html">goog.ui.Select</a></span>
        <div class="entryOverview">Font size menu button.</div>
     </td>
   </tr>
  </table>
      </div>
   
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_ui_editor_defaulttoolbar.js.source.html#line207">code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry public">
       <td class="access"></td>






  <td>
    <a name="goog.ui.editor.DefaultToolbar.addDefaultFonts"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace">goog.ui.editor.DefaultToolbar.</span><span class="entryName">addDefaultFonts<span class="args">(<span class="arg">button</span>)</span>
        </span>
      </div>


     <div class="entryOverview">
       Initializes the given font menu button by adding default fonts to the menu.
If goog.ui.editor.DefaultToolbar.setLocale was called to specify a locale
for which locale-specific default fonts exist, those are added before
common fonts.

     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">button</span>
        : <span>!</span><span class="type"><a href="class_goog_ui_Select.html">goog.ui.Select</a></span>
        <div class="entryOverview">Font menu button.</div>
     </td>
   </tr>
  </table>
      </div>
   
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_ui_editor_defaulttoolbar.js.source.html#line147">code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry public">
       <td class="access"></td>






  <td>
    <a name="goog.ui.editor.DefaultToolbar.addDefaultFormatOptions"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace">goog.ui.editor.DefaultToolbar.</span><span class="entryName">addDefaultFormatOptions<span class="args">(<span class="arg">button</span>)</span>
        </span>
      </div>


     <div class="entryOverview">
       Initializes the given "Format block" menu button by adding default format
options to the menu.

     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">button</span>
        : <span>!</span><span class="type"><a href="class_goog_ui_Select.html">goog.ui.Select</a></span>
        <div class="entryOverview">"Format block" menu button.</div>
     </td>
   </tr>
  </table>
      </div>
   
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_ui_editor_defaulttoolbar.js.source.html#line268">code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry private">
       <td class="access"></td>






  <td>
    <a name="goog.ui.editor.DefaultToolbar.backgroundColorFactory_"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace">goog.ui.editor.DefaultToolbar.</span><span class="entryName">backgroundColorFactory_<span class="args">(<span class="arg">id</span>,&nbsp;<span class="arg">tooltip</span>,&nbsp;<span class="arg">caption</span>,&nbsp;<span class="arg">opt_classNames</span>,&nbsp;<span class="arg">opt_renderer</span>,&nbsp;<span class="arg">opt_domHelper</span>)</span>
        </span>
        &#8658; <span>!</span><span class="type"><a href="class_goog_ui_Button.html">goog.ui.Button</a></span>
      </div>


     <div class="entryOverview">
       Creates a toolbar button with the given ID, tooltip, and caption.  Applies
any custom CSS class names to the button's caption element. Use to create
a font background color button.

     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">id</span>
        : <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String">string</a></span>
        <div class="entryOverview">Button ID; must equal a <code> goog.editor.Command</code> for
    built-in buttons, anything else for custom buttons.</div>
     </td>
   </tr>
     
   <tr class="odd">
     <td>
        <span class="entryName">tooltip</span>
        : <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String">string</a></span>
        <div class="entryOverview">Tooltip to be shown on hover.</div>
     </td>
   </tr>
     
   <tr class="even">
     <td>
        <span class="entryName">caption</span>
        : <span class="type">goog.ui.ControlContent</span>
        <div class="entryOverview">Button caption.</div>
     </td>
   </tr>
     
   <tr class="odd">
     <td>
        <span class="entryName">opt_classNames</span>
        : <span class="type">string=</span>
        <div class="entryOverview">CSS class name(s) to apply to the caption
    element.</div>
     </td>
   </tr>
     
   <tr class="even">
     <td>
        <span class="entryName">opt_renderer</span>
        : <span class="type">goog.ui.ColorMenuButtonRenderer=</span>
        <div class="entryOverview">Button renderer;
    defaults to <code> goog.ui.ToolbarColorMenuButtonRenderer</code> if
    unspecified.</div>
     </td>
   </tr>
     
   <tr class="odd">
     <td>
        <span class="entryName">opt_domHelper</span>
        : <span class="type">goog.dom.DomHelper=</span>
        <div class="entryOverview">DOM helper, used for DOM
    creation; defaults to the current document if unspecified.</div>
     </td>
   </tr>
  </table>
      </div>
   
      <div class="detailsSection">
        <b>Returns:</b>&nbsp;<span>!</span><span class="type"><a href="class_goog_ui_Button.html">goog.ui.Button</a></span>&nbsp;
            A toolbar button.
      </div>
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_ui_editor_defaulttoolbar.js.source.html#line653">code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry private">
       <td class="access"></td>






  <td>
    <a name="goog.ui.editor.DefaultToolbar.colorUpdateFromValue_"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace">goog.ui.editor.DefaultToolbar.</span><span class="entryName">colorUpdateFromValue_<span class="args">(<span class="arg">button</span>,&nbsp;<span class="arg">color</span>)</span>
        </span>
      </div>


     <div class="entryOverview">
       Function to update the state of a color menu button.

     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">button</span>
        : <span class="type"><a href="class_goog_ui_ToolbarColorMenuButton.html">goog.ui.ToolbarColorMenuButton</a></span>
        <div class="entryOverview">The button to which the
    color menu is attached.</div>
     </td>
   </tr>
     
   <tr class="odd">
     <td>
        <span class="entryName">color</span>
        : <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Number">number</a></span>
        <div class="entryOverview">Color value to update to.</div>
     </td>
   </tr>
  </table>
      </div>
   
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_ui_editor_defaulttoolbar.js.source.html#line584">code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry public">
       <td class="access"></td>






  <td>
    <a name="function%91&button.factory"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace">function%91&button.</span><span class="entryName">factory<span class="args">()</span>
        </span>
      </div>


     <div class="entryOverview">
       <span class='nodesc'>No description.</span>
     </div>

   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_ui_editor_defaulttoolbar.js.source.html#line877">code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry private">
       <td class="access"></td>






  <td>
    <a name="goog.ui.editor.DefaultToolbar.fontColorFactory_"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace">goog.ui.editor.DefaultToolbar.</span><span class="entryName">fontColorFactory_<span class="args">(<span class="arg">id</span>,&nbsp;<span class="arg">tooltip</span>,&nbsp;<span class="arg">caption</span>,&nbsp;<span class="arg">opt_classNames</span>,&nbsp;<span class="arg">opt_renderer</span>,&nbsp;<span class="arg">opt_domHelper</span>)</span>
        </span>
        &#8658; <span>!</span><span class="type"><a href="class_goog_ui_Button.html">goog.ui.Button</a></span>
      </div>


     <div class="entryOverview">
       Creates a toolbar button with the given ID, tooltip, and caption.  Applies
any custom CSS class names to the button's caption element. Use to create
a font color button.

     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">id</span>
        : <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String">string</a></span>
        <div class="entryOverview">Button ID; must equal a <code> goog.editor.Command</code> for
    built-in buttons, anything else for custom buttons.</div>
     </td>
   </tr>
     
   <tr class="odd">
     <td>
        <span class="entryName">tooltip</span>
        : <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String">string</a></span>
        <div class="entryOverview">Tooltip to be shown on hover.</div>
     </td>
   </tr>
     
   <tr class="even">
     <td>
        <span class="entryName">caption</span>
        : <span class="type">goog.ui.ControlContent</span>
        <div class="entryOverview">Button caption.</div>
     </td>
   </tr>
     
   <tr class="odd">
     <td>
        <span class="entryName">opt_classNames</span>
        : <span class="type">string=</span>
        <div class="entryOverview">CSS class name(s) to apply to the caption
    element.</div>
     </td>
   </tr>
     
   <tr class="even">
     <td>
        <span class="entryName">opt_renderer</span>
        : <span class="type">goog.ui.ColorMenuButtonRenderer=</span>
        <div class="entryOverview">Button renderer;
    defaults to <code> goog.ui.ToolbarColorMenuButtonRenderer</code> if
    unspecified.</div>
     </td>
   </tr>
     
   <tr class="odd">
     <td>
        <span class="entryName">opt_domHelper</span>
        : <span class="type">goog.dom.DomHelper=</span>
        <div class="entryOverview">DOM helper, used for DOM
    creation; defaults to the current document if unspecified.</div>
     </td>
   </tr>
  </table>
      </div>
   
      <div class="detailsSection">
        <b>Returns:</b>&nbsp;<span>!</span><span class="type"><a href="class_goog_ui_Button.html">goog.ui.Button</a></span>&nbsp;
            A toolbar button.
      </div>
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_ui_editor_defaulttoolbar.js.source.html#line623">code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry private">
       <td class="access"></td>






  <td>
    <a name="goog.ui.editor.DefaultToolbar.fontFaceFactory_"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace">goog.ui.editor.DefaultToolbar.</span><span class="entryName">fontFaceFactory_<span class="args">(<span class="arg">id</span>,&nbsp;<span class="arg">tooltip</span>,&nbsp;<span class="arg">caption</span>,&nbsp;<span class="arg">opt_classNames</span>,&nbsp;<span class="arg">opt_renderer</span>,&nbsp;<span class="arg">opt_domHelper</span>)</span>
        </span>
        &#8658; <span>!</span><span class="type"><a href="class_goog_ui_Button.html">goog.ui.Button</a></span>
      </div>


     <div class="entryOverview">
       Creates a toolbar button with the given ID, tooltip, and caption.  Applies
any custom CSS class names to the button's caption element.  Used to create
a font face button, filled with default fonts.

     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">id</span>
        : <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String">string</a></span>
        <div class="entryOverview">Button ID; must equal a <code> goog.editor.Command</code> for
    built-in buttons, anything else for custom buttons.</div>
     </td>
   </tr>
     
   <tr class="odd">
     <td>
        <span class="entryName">tooltip</span>
        : <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String">string</a></span>
        <div class="entryOverview">Tooltip to be shown on hover.</div>
     </td>
   </tr>
     
   <tr class="even">
     <td>
        <span class="entryName">caption</span>
        : <span class="type">goog.ui.ControlContent</span>
        <div class="entryOverview">Button caption.</div>
     </td>
   </tr>
     
   <tr class="odd">
     <td>
        <span class="entryName">opt_classNames</span>
        : <span class="type">string=</span>
        <div class="entryOverview">CSS class name(s) to apply to the caption
    element.</div>
     </td>
   </tr>
     
   <tr class="even">
     <td>
        <span class="entryName">opt_renderer</span>
        : <span class="type">goog.ui.MenuButtonRenderer=</span>
        <div class="entryOverview">Button renderer; defaults
    to <code> goog.ui.ToolbarMenuButtonRenderer</code> if unspecified.</div>
     </td>
   </tr>
     
   <tr class="odd">
     <td>
        <span class="entryName">opt_domHelper</span>
        : <span class="type">goog.dom.DomHelper=</span>
        <div class="entryOverview">DOM helper, used for DOM
    creation; defaults to the current document if unspecified.</div>
     </td>
   </tr>
  </table>
      </div>
   
      <div class="detailsSection">
        <b>Returns:</b>&nbsp;<span>!</span><span class="type"><a href="class_goog_ui_Button.html">goog.ui.Button</a></span>&nbsp;
            A toolbar button.
      </div>
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_ui_editor_defaulttoolbar.js.source.html#line494">code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry private">
       <td class="access"></td>






  <td>
    <a name="goog.ui.editor.DefaultToolbar.fontSizeFactory_"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace">goog.ui.editor.DefaultToolbar.</span><span class="entryName">fontSizeFactory_<span class="args">(<span class="arg">id</span>,&nbsp;<span class="arg">tooltip</span>,&nbsp;<span class="arg">caption</span>,&nbsp;<span class="arg">opt_classNames</span>,&nbsp;<span class="arg">opt_renderer</span>,&nbsp;<span class="arg">opt_domHelper</span>)</span>
        </span>
        &#8658; <span>!</span><span class="type"><a href="class_goog_ui_Button.html">goog.ui.Button</a></span>
      </div>


     <div class="entryOverview">
       Creates a toolbar button with the given ID, tooltip, and caption.  Applies
any custom CSS class names to the button's caption element. Use to create a
font size button, filled with default font sizes.

     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">id</span>
        : <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String">string</a></span>
        <div class="entryOverview">Button ID; must equal a <code> goog.editor.Command</code> for
    built-in buttons, anything else for custom buttons.</div>
     </td>
   </tr>
     
   <tr class="odd">
     <td>
        <span class="entryName">tooltip</span>
        : <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String">string</a></span>
        <div class="entryOverview">Tooltip to be shown on hover.</div>
     </td>
   </tr>
     
   <tr class="even">
     <td>
        <span class="entryName">caption</span>
        : <span class="type">goog.ui.ControlContent</span>
        <div class="entryOverview">Button caption.</div>
     </td>
   </tr>
     
   <tr class="odd">
     <td>
        <span class="entryName">opt_classNames</span>
        : <span class="type">string=</span>
        <div class="entryOverview">CSS class name(s) to apply to the caption
    element.</div>
     </td>
   </tr>
     
   <tr class="even">
     <td>
        <span class="entryName">opt_renderer</span>
        : <span class="type">goog.ui.MenuButtonRenderer=</span>
        <div class="entryOverview">Button renderer; defaults
    to <code> goog.ui.ToolbarMebuButtonRenderer</code> if unspecified.</div>
     </td>
   </tr>
     
   <tr class="odd">
     <td>
        <span class="entryName">opt_domHelper</span>
        : <span class="type">goog.dom.DomHelper=</span>
        <div class="entryOverview">DOM helper, used for DOM
    creation; defaults to the current document if unspecified.</div>
     </td>
   </tr>
  </table>
      </div>
   
      <div class="detailsSection">
        <b>Returns:</b>&nbsp;<span>!</span><span class="type"><a href="class_goog_ui_Button.html">goog.ui.Button</a></span>&nbsp;
            A toolbar button.
      </div>
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_ui_editor_defaulttoolbar.js.source.html#line544">code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry private">
       <td class="access"></td>






  <td>
    <a name="goog.ui.editor.DefaultToolbar.formatBlockFactory_"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace">goog.ui.editor.DefaultToolbar.</span><span class="entryName">formatBlockFactory_<span class="args">(<span class="arg">id</span>,&nbsp;<span class="arg">tooltip</span>,&nbsp;<span class="arg">caption</span>,&nbsp;<span class="arg">opt_classNames</span>,&nbsp;<span class="arg">opt_renderer</span>,&nbsp;<span class="arg">opt_domHelper</span>)</span>
        </span>
        &#8658; <span>!</span><span class="type"><a href="class_goog_ui_Button.html">goog.ui.Button</a></span>
      </div>


     <div class="entryOverview">
       Creates a toolbar button with the given ID, tooltip, and caption.  Applies
any custom CSS class names to the button's caption element. Use to create
the format menu, prefilled with default formats.

     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">id</span>
        : <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String">string</a></span>
        <div class="entryOverview">Button ID; must equal a <code> goog.editor.Command</code> for
    built-in buttons, anything else for custom buttons.</div>
     </td>
   </tr>
     
   <tr class="odd">
     <td>
        <span class="entryName">tooltip</span>
        : <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String">string</a></span>
        <div class="entryOverview">Tooltip to be shown on hover.</div>
     </td>
   </tr>
     
   <tr class="even">
     <td>
        <span class="entryName">caption</span>
        : <span class="type">goog.ui.ControlContent</span>
        <div class="entryOverview">Button caption.</div>
     </td>
   </tr>
     
   <tr class="odd">
     <td>
        <span class="entryName">opt_classNames</span>
        : <span class="type">string=</span>
        <div class="entryOverview">CSS class name(s) to apply to the caption
    element.</div>
     </td>
   </tr>
     
   <tr class="even">
     <td>
        <span class="entryName">opt_renderer</span>
        : <span class="type">goog.ui.MenuButtonRenderer=</span>
        <div class="entryOverview">Button renderer;
    defaults to
    <code> goog.ui.ToolbarMenuButtonRenderer</code> if unspecified.</div>
     </td>
   </tr>
     
   <tr class="odd">
     <td>
        <span class="entryName">opt_domHelper</span>
        : <span class="type">goog.dom.DomHelper=</span>
        <div class="entryOverview">DOM helper, used for DOM
    creation; defaults to the current document if unspecified.</div>
     </td>
   </tr>
  </table>
      </div>
   
      <div class="detailsSection">
        <b>Returns:</b>&nbsp;<span>!</span><span class="type"><a href="class_goog_ui_Button.html">goog.ui.Button</a></span>&nbsp;
            A toolbar button.
      </div>
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_ui_editor_defaulttoolbar.js.source.html#line683">code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry public">
       <td class="access"></td>






  <td>
    <a name="goog.ui.editor.DefaultToolbar.makeBuiltInToolbarButton"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace">goog.ui.editor.DefaultToolbar.</span><span class="entryName">makeBuiltInToolbarButton<span class="args">(<span class="arg">command</span>,&nbsp;<span class="arg">opt_domHelper</span>)</span>
        </span>
        &#8658; <span class="type"><a href="class_goog_ui_Button.html">goog.ui.Button</a></span>
      </div>


     <div class="entryOverview">
       Creates an instance of a subclass of <code> goog.ui.Button</code> for the given
<code> goog.editor.Command</code>, or null if no built-in button exists for the
command.  Note that this function is only intended to create built-in
buttons; please don't try to hack it!

     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">command</span>
        : <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String">string</a></span>
        <div class="entryOverview">Editor command ID.</div>
     </td>
   </tr>
     
   <tr class="odd">
     <td>
        <span class="entryName">opt_domHelper</span>
        : <span class="type">goog.dom.DomHelper=</span>
        <div class="entryOverview">DOM helper, used for DOM
    creation; defaults to the current document if unspecified.</div>
     </td>
   </tr>
  </table>
      </div>
   
      <div class="detailsSection">
        <b>Returns:</b>&nbsp;<span class="type"><a href="class_goog_ui_Button.html">goog.ui.Button</a></span>&nbsp;
            Toolbar button (null if no built-in button exists
    for the command).
      </div>
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_ui_editor_defaulttoolbar.js.source.html#line342">code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry public">
       <td class="access"></td>






  <td>
    <a name="goog.ui.editor.DefaultToolbar.makeDefaultToolbar"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace">goog.ui.editor.DefaultToolbar.</span><span class="entryName">makeDefaultToolbar<span class="args">(<span class="arg">elem</span>,&nbsp;<span class="arg">opt_isRightToLeft</span>)</span>
        </span>
        &#8658; <span>!</span><span class="type"><a href="class_goog_ui_Toolbar.html">goog.ui.Toolbar</a></span>
      </div>


     <div class="entryOverview">
       Creates a <code> goog.ui.Toolbar</code> containing a default set of editor
toolbar buttons, and renders it into the given parent element.

     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">elem</span>
        : <span>!</span><span class="type"><a href="https://developer.mozilla.org/en/DOM/Element">Element</a></span>
        <div class="entryOverview">Toolbar parent element.</div>
     </td>
   </tr>
     
   <tr class="odd">
     <td>
        <span class="entryName">opt_isRightToLeft</span>
        : <span class="type">boolean=</span>
        <div class="entryOverview">Whether the editor chrome is
    right-to-left; defaults to the directionality of the toolbar parent
    element.</div>
     </td>
   </tr>
  </table>
      </div>
   
      <div class="detailsSection">
        <b>Returns:</b>&nbsp;<span>!</span><span class="type"><a href="class_goog_ui_Toolbar.html">goog.ui.Toolbar</a></span>&nbsp;
            Default editor toolbar, rendered into the given
    parent element.
      </div>
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_ui_editor_defaulttoolbar.js.source.html#line285">code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry public">
       <td class="access"></td>






  <td>
    <a name="goog.ui.editor.DefaultToolbar.makeToolbar"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace">goog.ui.editor.DefaultToolbar.</span><span class="entryName">makeToolbar<span class="args">(<span class="arg">items</span>,&nbsp;<span class="arg">elem</span>,&nbsp;<span class="arg">opt_isRightToLeft</span>)</span>
        </span>
        &#8658; <span>!</span><span class="type"><a href="class_goog_ui_Toolbar.html">goog.ui.Toolbar</a></span>
      </div>


     <div class="entryOverview">
       Creates a <code> goog.ui.Toolbar</code> containing the specified set of
toolbar buttons, and renders it into the given parent element.  Each
item in the <code> items</code> array must either be a
<code> goog.editor.Command</code> (to create a built-in button) or a subclass
of <code> goog.ui.Control</code> (to create a custom control).

     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">items</span>
        : <span>!</span><span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Array">Array</a></span>.&lt;<span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String">string</a></span><span>&nbsp;|&nbsp;</span><span class="type"><a href="class_goog_ui_Control.html">goog.ui.Control</a></span>&gt;
        <div class="entryOverview">Toolbar items; each must
    be a <code> goog.editor.Command</code> or a <code> goog.ui.Control</code>.</div>
     </td>
   </tr>
     
   <tr class="odd">
     <td>
        <span class="entryName">elem</span>
        : <span>!</span><span class="type"><a href="https://developer.mozilla.org/en/DOM/Element">Element</a></span>
        <div class="entryOverview">Toolbar parent element.</div>
     </td>
   </tr>
     
   <tr class="even">
     <td>
        <span class="entryName">opt_isRightToLeft</span>
        : <span class="type">boolean=</span>
        <div class="entryOverview">Whether the editor chrome is
    right-to-left; defaults to the directionality of the toolbar parent
    element.</div>
     </td>
   </tr>
  </table>
      </div>
   
      <div class="detailsSection">
        <b>Returns:</b>&nbsp;<span>!</span><span class="type"><a href="class_goog_ui_Toolbar.html">goog.ui.Toolbar</a></span>&nbsp;
            Editor toolbar, rendered into the given parent
    element.
      </div>
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_ui_editor_defaulttoolbar.js.source.html#line311">code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry private">
       <td class="access"></td>






  <td>
    <a name="goog.ui.editor.DefaultToolbar.rtlButtonFactory_"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace">goog.ui.editor.DefaultToolbar.</span><span class="entryName">rtlButtonFactory_<span class="args">(<span class="arg">id</span>,&nbsp;<span class="arg">tooltip</span>,&nbsp;<span class="arg">caption</span>,&nbsp;<span class="arg">opt_classNames</span>,&nbsp;<span class="arg">opt_renderer</span>,&nbsp;<span class="arg">opt_domHelper</span>)</span>
        </span>
        &#8658; <span>!</span><span class="type"><a href="class_goog_ui_Button.html">goog.ui.Button</a></span>
      </div>


     <div class="entryOverview">
       Creates a toolbar button with the given ID, tooltip, and caption.  Applies
any custom CSS class names to the button's caption element.  This button
is designed to be used as the RTL button.

     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">id</span>
        : <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String">string</a></span>
        <div class="entryOverview">Button ID; must equal a <code> goog.editor.Command</code> for
    built-in buttons, anything else for custom buttons.</div>
     </td>
   </tr>
     
   <tr class="odd">
     <td>
        <span class="entryName">tooltip</span>
        : <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String">string</a></span>
        <div class="entryOverview">Tooltip to be shown on hover.</div>
     </td>
   </tr>
     
   <tr class="even">
     <td>
        <span class="entryName">caption</span>
        : <span class="type">goog.ui.ControlContent</span>
        <div class="entryOverview">Button caption.</div>
     </td>
   </tr>
     
   <tr class="odd">
     <td>
        <span class="entryName">opt_classNames</span>
        : <span class="type">string=</span>
        <div class="entryOverview">CSS class name(s) to apply to the caption
    element.</div>
     </td>
   </tr>
     
   <tr class="even">
     <td>
        <span class="entryName">opt_renderer</span>
        : <span class="type">goog.ui.ButtonRenderer=</span>
        <div class="entryOverview">Button renderer; defaults to
    <code> goog.ui.ToolbarButtonRenderer</code> if unspecified.</div>
     </td>
   </tr>
     
   <tr class="odd">
     <td>
        <span class="entryName">opt_domHelper</span>
        : <span class="type">goog.dom.DomHelper=</span>
        <div class="entryOverview">DOM helper, used for DOM
    creation; defaults to the current document if unspecified.</div>
     </td>
   </tr>
  </table>
      </div>
   
      <div class="detailsSection">
        <b>Returns:</b>&nbsp;<span>!</span><span class="type"><a href="class_goog_ui_Button.html">goog.ui.Button</a></span>&nbsp;
            A toolbar button.
      </div>
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_ui_editor_defaulttoolbar.js.source.html#line430">code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry public">
       <td class="access"></td>






  <td>
    <a name="goog.ui.editor.DefaultToolbar.setLocale"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace">goog.ui.editor.DefaultToolbar.</span><span class="entryName">setLocale<span class="args">(<span class="arg">locale</span>)</span>
        </span>
      </div>


     <div class="entryOverview">
       Sets the locale for the font names.  If not set, defaults to 'en-us'.
Used only for default creation of font names name.  Must be set
before font name menu is created.

     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">locale</span>
        : <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String">string</a></span>
        <div class="entryOverview">Locale to use for the toolbar font names.</div>
     </td>
   </tr>
  </table>
      </div>
   
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_ui_editor_defaulttoolbar.js.source.html#line135">code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry private">
       <td class="access"></td>






  <td>
    <a name="goog.ui.editor.DefaultToolbar.undoRedoButtonFactory_"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace">goog.ui.editor.DefaultToolbar.</span><span class="entryName">undoRedoButtonFactory_<span class="args">(<span class="arg">id</span>,&nbsp;<span class="arg">tooltip</span>,&nbsp;<span class="arg">caption</span>,&nbsp;<span class="arg">opt_classNames</span>,&nbsp;<span class="arg">opt_renderer</span>,&nbsp;<span class="arg">opt_domHelper</span>)</span>
        </span>
        &#8658; <span>!</span><span class="type"><a href="class_goog_ui_Button.html">goog.ui.Button</a></span>
      </div>


     <div class="entryOverview">
       Creates a toolbar button with the given ID, tooltip, and caption.  Applies
any custom CSS class names to the button's caption element.  Designed to
be used to create undo and redo buttons.

     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">id</span>
        : <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String">string</a></span>
        <div class="entryOverview">Button ID; must equal a <code> goog.editor.Command</code> for
    built-in buttons, anything else for custom buttons.</div>
     </td>
   </tr>
     
   <tr class="odd">
     <td>
        <span class="entryName">tooltip</span>
        : <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String">string</a></span>
        <div class="entryOverview">Tooltip to be shown on hover.</div>
     </td>
   </tr>
     
   <tr class="even">
     <td>
        <span class="entryName">caption</span>
        : <span class="type">goog.ui.ControlContent</span>
        <div class="entryOverview">Button caption.</div>
     </td>
   </tr>
     
   <tr class="odd">
     <td>
        <span class="entryName">opt_classNames</span>
        : <span class="type">string=</span>
        <div class="entryOverview">CSS class name(s) to apply to the caption
    element.</div>
     </td>
   </tr>
     
   <tr class="even">
     <td>
        <span class="entryName">opt_renderer</span>
        : <span class="type">goog.ui.ButtonRenderer=</span>
        <div class="entryOverview">Button renderer; defaults to
    <code> goog.ui.ToolbarButtonRenderer</code> if unspecified.</div>
     </td>
   </tr>
     
   <tr class="odd">
     <td>
        <span class="entryName">opt_domHelper</span>
        : <span class="type">goog.dom.DomHelper=</span>
        <div class="entryOverview">DOM helper, used for DOM
    creation; defaults to the current document if unspecified.</div>
     </td>
   </tr>
  </table>
      </div>
   
      <div class="detailsSection">
        <b>Returns:</b>&nbsp;<span>!</span><span class="type"><a href="class_goog_ui_Button.html">goog.ui.Button</a></span>&nbsp;
            A toolbar button.
      </div>
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_ui_editor_defaulttoolbar.js.source.html#line466">code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry public">
       <td class="access"></td>






  <td>
    <a name="goog.ui.editor.DefaultToolbar.rtlButtonFactory_&button.updateFromValue"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace">goog.ui.editor.DefaultToolbar.rtlButtonFactory_&button.</span><span class="entryName">updateFromValue<span class="args">()</span>
        </span>
      </div>


     <div class="entryOverview">
       <span class='nodesc'>No description.</span>
     </div>

   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_ui_editor_defaulttoolbar.js.source.html#line434">code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry public">
       <td class="access"></td>






  <td>
    <a name="goog.ui.editor.DefaultToolbar.undoRedoButtonFactory_&button.updateFromValue"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace">goog.ui.editor.DefaultToolbar.undoRedoButtonFactory_&button.</span><span class="entryName">updateFromValue<span class="args">()</span>
        </span>
      </div>


     <div class="entryOverview">
       <span class='nodesc'>No description.</span>
     </div>

   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_ui_editor_defaulttoolbar.js.source.html#line470">code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry public">
       <td class="access"></td>






  <td>
    <a name="goog.ui.editor.DefaultToolbar.fontFaceFactory_&button.updateFromValue"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace">goog.ui.editor.DefaultToolbar.fontFaceFactory_&button.</span><span class="entryName">updateFromValue<span class="args">()</span>
        </span>
      </div>


     <div class="entryOverview">
       <span class='nodesc'>No description.</span>
     </div>

   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_ui_editor_defaulttoolbar.js.source.html#line506">code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry public">
       <td class="access"></td>






  <td>
    <a name="goog.ui.editor.DefaultToolbar.fontSizeFactory_&button.updateFromValue"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace">goog.ui.editor.DefaultToolbar.fontSizeFactory_&button.</span><span class="entryName">updateFromValue<span class="args">()</span>
        </span>
      </div>


     <div class="entryOverview">
       <span class='nodesc'>No description.</span>
     </div>

   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_ui_editor_defaulttoolbar.js.source.html#line555">code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry public">
       <td class="access"></td>






  <td>
    <a name="goog.ui.editor.DefaultToolbar.formatBlockFactory_&button.updateFromValue"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace">goog.ui.editor.DefaultToolbar.formatBlockFactory_&button.</span><span class="entryName">updateFromValue<span class="args">()</span>
        </span>
      </div>


     <div class="entryOverview">
       <span class='nodesc'>No description.</span>
     </div>

   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_ui_editor_defaulttoolbar.js.source.html#line694">code &raquo;</a>
  </td>
     </tr>


  </table>
</div>






  <h2>Global Variables</h2>





<div class="section">
  <table class="horiz-rule">


     <tr class="even entry public">
       <td class="access"></td>





  <a name="function%91"></a>

  <td>


     <div class="arg">
        <img align="left" src="static/images/blank.gif">

        <span class="entryName">function%91</span>
        : 
     </div>


     <div class="entryOverview">
       <span class='nodesc'>No description.</span>
     </div>

  </td>


  <td class="view-code">
     <a href="local_closure_goog_ui_editor_defaulttoolbar.js.source.html#line1057">Code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry public">
       <td class="access"></td>





  <a name="goog.ui.editor.DefaultToolbar.I18N_FONTS_.ja"></a>

  <td>


     <div class="arg">
        <img align="left" src="static/images/blank.gif">

        <span class="entryName">ja</span>
        : 
     </div>


     <div class="entryOverview">
       <span class='nodesc'>No description.</span>
     </div>

  </td>


  <td class="view-code">
     <a href="local_closure_goog_ui_editor_defaulttoolbar.js.source.html#line81">Code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry public">
       <td class="access"></td>





  <a name="goog.ui.editor.DefaultToolbar.I18N_FONTS_.ko"></a>

  <td>


     <div class="arg">
        <img align="left" src="static/images/blank.gif">

        <span class="entryName">ko</span>
        : 
     </div>


     <div class="entryOverview">
       <span class='nodesc'>No description.</span>
     </div>

  </td>


  <td class="view-code">
     <a href="local_closure_goog_ui_editor_defaulttoolbar.js.source.html#line91">Code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry public">
       <td class="access"></td>





  <a name="goog.ui.editor.DefaultToolbar.I18N_FONTS_.zh-cn"></a>

  <td>


     <div class="arg">
        <img align="left" src="static/images/blank.gif">

        <span class="entryName">zh-cn</span>
        : 
     </div>


     <div class="entryOverview">
       <span class='nodesc'>No description.</span>
     </div>

  </td>


  <td class="view-code">
     <a href="local_closure_goog_ui_editor_defaulttoolbar.js.source.html#line108">Code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry public">
       <td class="access"></td>





  <a name="goog.ui.editor.DefaultToolbar.I18N_FONTS_.zh-tw"></a>

  <td>


     <div class="arg">
        <img align="left" src="static/images/blank.gif">

        <span class="entryName">zh-tw</span>
        : 
     </div>


     <div class="entryOverview">
       <span class='nodesc'>No description.</span>
     </div>

  </td>


  <td class="view-code">
     <a href="local_closure_goog_ui_editor_defaulttoolbar.js.source.html#line101">Code &raquo;</a>
  </td>
     </tr>


  </table>
</div>
      <!-- Column 1 end -->
    </div>

        <div class="col2">
          <!-- Column 2 start -->
          <div class="col2-c">
            <h2 id="ref-head">Directory editor</h2>
            <div id="localView"></div>
          </div>

          <div class="col2-c">
            <h2 id="ref-head">File Reference</h2>
            <div id="sideFileIndex" rootPath="" current="/goog/ui/editor/defaulttoolbar.js"></div>
          </div>
          <!-- Column 2 end -->
        </div>
</div>
</div>

</body>
</html>
